package com.ql.gamelogm.service.impl;

import com.ql.gamelogm.dao.CalendarDao;
import com.ql.gamelogm.entities.CalendarEvent;
import com.ql.gamelogm.service.CalendarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CalendarServiceImpl implements CalendarService {
    @Autowired
    private CalendarDao calendarDao;
    @Override
    public List<CalendarEvent> findCalsById(String id) {
        return calendarDao.findCalsById(id);
    }


    @Override
    public boolean updateCalsById(String date,String id, String content) {
        return calendarDao.updateCalsById(date,id,content);
    }

    @Override
    public boolean addCals(String id, String content, String date) {
        return calendarDao.addCals(id,content,date);
    }
}
